package vip.mtdp.asset.api.constants;

/**
 * @Description
 * @Author Evans.wang
 * @since 2023/11/1 23:07
 **/
public enum BizTypeEnum {

    DEPOSIT("deposit"),
    WITHDRAW("withdraw");

    private String value;

    private BizTypeEnum(String value){
        this.value = value;
    }

    /**
     *
     * @param value
     * @return
     */
    public static boolean support(String value){
        for (BizTypeEnum bizTypeEnum : values()){
            if (bizTypeEnum.getValue().equals(value)){
                return true;
            }
        }
        return false;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
